import request from '@/utils/request'

// 查询区域能耗报列表
export function listReport(query) {
  return request({
    url: '/energy/report/list',
    method: 'get',
    params: query
  })
}

// 查询区域能耗报详细
export function getReport(id) {
  return request({
    url: '/energy/report/' + id,
    method: 'get'
  })
}

// 新增区域能耗报

export function addReport(data) {
  return request({
    url: '/energy/report',
    method: 'post',
    data: data
  })
}

// 修改区域能耗报

export function updateReport(data) {
  return request({
    url: '/energy/report',
    method: 'put',
    data: data
  })
}

// 删除区域能耗报

export function delReport(id) {
  return request({
    url: '/energy/report/' + id,
    method: 'delete'
  })
}

//获取能耗报表
export function getEnergyReportList(query) {
  return request({
    url: '/energy/report/getEnergyReportList',
    method: 'get',
    params: query
  })
}

//获取能耗分析
export function getEnergyReportListForAnalysis(query) {
  return request({
    url: '/energy/report/getEnergyReportListForAnalysis',
    method: 'get',
    params: query
  })
}
//能耗概况-获取磁贴中各类数据
export function getSummarizeList() {
  return request({
    url: '/energy/report/getSummarizeList',
    method: 'get',
  })
}
//能耗概况-当月园区线损情况
export function getLineLossMonthList() {
  return request({
    url: '/energy/report/getLineLossMonthList',
    method: 'get',
  })
}
//能耗概况-当日园区总负荷
export function getEnergyDayList() {
  return request({
    url: '/energy/report/getEnergyDayList',
    method: 'get',
  })
}

//能耗概况-top3电表用量
export function getTopFlowList() {
  return request({
    url: '/energy/report/getTopFlowList',
    method: 'get',
  })
}
